Made animframe_polyfill.js JSHint compliant

Reformatted a bunch to make JSHint happy.
Merge pull request #115 from iirelu/jshint-compliance

Made animframe_polyfill.js JSHint compliant
Add an undo function
Merge branch 'add-undo' into gh-pages