A more advanced version of the client script component in Yii.