Javascript ideology for developing complex web applications for Yii