A few more comments. Refactor pausing and resuming animations. Added polyfill for classlist.