Media player with HTML5 and JavaScript