HTML5 - Space Invaders

This is a demo I built to test the performance of HTML5 and Canvas. After playing around with various HTML5 libraries that are currently out there (such as CreateJs), I decided things would work best if I wrote my own graphics API. The following is a space invaders game written in HTML5. The controls are the arrow keys and spacebar, but you can also use the touchscreen playing on a mobile device.