added RequireJS support