define('main', [], function() {
    requirejs.config({
        paths: {<% if (includeModernizr) { %>
            'modernizr': '../bower_components/modernizr/modernizr',<% } %>
            'jquery': '../bower_components/jquery/jquery',<% if (includeUnderscore) { %>
            'underscore': '../bower_components/underscore/underscore',<% } %><% if (cssFramework === 'SASSBootstrap') { %>
            'bootstrap': '../bower_components/sass-bootstrap/dist/js/bootstrap'<% } %>
        },
        shim: {
            'bootstrap': ['jquery']
        }
    });

    Window.name = 'NG_DEFER_BOOTSTRAP!';

    requirejs([<% if (includeModernizr) { %>
        'modernizr',<% } %>
        'jquery',<% if (includeUnderscore) { %> 
        'underscore',<% } %><% if (cssFramework === 'SASSBootstrap') { %>
        'bootstrap'<% } %>
    ], function($) {
        'use strict';
        /* App Module */
    });
});

@@ -219,16 +219,21 @@
 /jquery/
+dist/
 jquery',
@@ -612,16 +612,34 @@
 uirejs(%5B
+%0A        'jquery',
 %3C%25 if (i
@@ -687,34 +687,16 @@
 ,%3C%25 %7D %25%3E
-%0A        'jquery',
 %3C%25 if (i

Modify main.js