fixed #2072 Improvement performance for Cocos2d-html5

Improvement performance for Cocos2d-html5