Support run sample projects with console.
Merge branch 'master' of https://github.com/cocos2d/cocos2d-js
Merge pull request #249 from natural-law/master

Support run sample projects with console.