Setup requirejs
Add main.js
Refactor models and views to use requirejs