Adding support for AMD with requireJS support