uses Yii register client script to write js