Converted JS binding to be compatible with Cocos2d-x v3

re-bound JS for compatibillity with Cocos2D-X v3