You can do it like this with require.js as well, it's a little more succinct.

```js
requirejs.config({
  paths: {
    when: 'path/to/when'
  }
});
```