refactor player to html5