Added requireJS support