Variable speed pitch shifter written in JavaScript