fix using amd-loader and define in the same module