Restructure project. Add requirejs via bower.
Add todo comment for moving requestAnimFrame
Guessworking myself to a better collision resolve.