Online tuner in javascript and HTML5