adding support for AMD with RequireJS