As far as I know, you removed support for AMD and introduced a CommonJS syntax here, which will not work with requireJS. 
There is no way to do AMD without the define function.