Added support for requireJS