Easy javascript code for a HTML5 based music player