Javascript variables and object converter for Yii