Changing code to requirejs style
Modify gruntfile