Add COCOS_JS_ROOT environment

fixed #1120