fix RequireJS compatibility

define() was not working in my setup, I'm using RequireJS 2.1.10