Fixed YII_DEBUG check
Fixed using non existing jquery ui
Fixed typo