Refactors resize, adds a bunch of stuff
Refactored the resize based on a SO post

http://stackoverflow.com/questions/18476545/why-is-animation-speed-increasing-each-time-the-target-element-is-deleted-and-re

Also improves animation (using requestAnimationFrame) and generally
cleaned/improved code.