add grunt-task to build files with requirejs.
Fix typing issue.
Use Require JS to build project.