Update cocos2d.js

change loading order of the script files