I can't take credit for most, that would go to some guy at http://overdrawn.net/mario/ but I added sound as well as collision detection. It works on a friggin high resolution though... Open it up in browser to see what it looks like, was kind of fun to kill some time with coding. Didn't get around to moving mario.
Click here
Click here