I keep getting:

```
Uncaught TypeError: object is not a function

```

The first time:

```
<script>
    require(['core/controller']);
</script>

```

The secondoccurrence is:

```
require.config({
    paths: {
        "jquery": [
            "jquery"
        ],
        'bootstrap': [
            'bootstrap'
        ],
        'kendo': [
            'kendo'
        ],
        handlebars: 'handlebars'
    },
    shim: {
        "bootstrap": {
            deps :["jquery"]
        },
        "kendo": {
            deps: ["jquery"]
        }
    }
})

define('config', function (require) {
    'use strict';

    var module = require('module');

    return module.config ? module.config() : {};
});

define('events', ['core/mini-events'], function(EventEmitter){

    var events = new EventEmitter();

    return events;

});

```

In my header I have:

```
<script data-main="/js/main.js" src="http://mbms.com/js/requirejs.js"></script>

```