refactored scripts to use requirejs

* Removed old main.js
* Added requirejs grunt task
* Added jshint grunt task