Fix RequireJS Support

This PR fixes bug #9 relating to RequireJS support.