Infinite Mario in HTML5 JavaScript - using Canvas and Audio elements