Moved stuff to global and continued with LB

* Moved all general helpers and shims to global.js
* Added timer to set up intervals (decided to use requestAnimationFrame
instead of setInterval.. mainly because I wanted to learn what it can
do)
* added html framework