Frequcency analysis using HTML5 audio and Web Audio API