Rewrite classic arcade game in Javascript and HTML5