JavaScript animation code overhaul.

Use JavaScript from benvanik which is pretty heavily documented and
supports animating without a canvas.

* Add in support for Pause/Play functionality.
* Use more appropriate class names
* Remove concept of initial img
* Bundle animation data into the JavaScript code itself (fewer HTTP
requests)