Refactored/fixed requrejs module.
Changed grunt to gulp.