Fix AMD define to work with RequireJS