support AMD 'define' for project with requireJS