HTML5, JQUERY loop pedal