Simple media player with HTML5 and JavaScript