Making use of window.animationFrame for testing
Moved over to guinness to replace unittest

Also implemented a testing workaround for the browser
doing funny things on window load.