Merge pull request #266 from dingpinglv/Iss3499_ForNPM

Fixed #3499: modify build.xml for NPM
Fixed #3499: modify resource path for NPM
Merge branch 'master' of https://github.com/cocos2d/cocos2d-js-tests into Iss3499_ForNPM