Add support for requirejs and Jasmine.

The compose function wasn't being called correctly. Pass through the `requirejs` flag
so the testing library can use it.