Again, this should be DRYed up.

```js
var controllerPath = controller = controllerDir + "/" + controllerName + "_controller";

if (!global.isServer && typeof define !== 'undefined') {
  controller = controllerPath;
} else {
  controller = require(controllerPath);
}
```