Add support for AMD (RequireJS)