Refactor #3936 Fix a bug of cc.loader to load js.