fixed define statement for requirejs optimization
fixed define and requiring