fixes for Tizen SDK

The following changes are cosmetic and should not change the Cocos logic at all. These are just minor changes to calm down the Tizen javascript code verification.