AMD/CommonJS/Globals #12909

the following jshint tests are failing:

+ Missing "use strict" statement.
+ 'define' is not defined.
+ 'require' is not defined.

I dont want to add "use strict" to this factory method. If that means removing the js hint rule for that, im fine with that.

Not sure where to add our define/require exports… @cvrebert any idea?