add requireJS support