Simple pure JavaScript HTML5 Game