Pitch detection in Web Audio using autocorrelation