This isn't quite right.  With RequireJS, this should look like this:

```js
requirejs.config({
  packages: [
    { name: 'when', location: '/path/to/when', main: 'when' }
    /* ... other packages ... */
  ]
});
```

I like to include a curl.js config snippet, too, of course. :)  

```js
curl.config({
  packages: {
    when: { location: '/path/to/when', main: 'when' }
    /* ... other packages ... */
  }
});
```