Fixed issues with CocosDragon and CrystalCraze

They now run correctly in CocosPlayer and HTML5.