Add RequireJS AMD cladding.

Closes #3.