adding initial javascript implementation

combining “PitchDetect” from Chris Wilson and “Note Envelope” example
from p5.js