Changed renderHead() method for render clients scripts before </head>
Update framework/web/CClientScript.php

Changed renderHead() method for render clients scripts after </title>
Update framework/web/CClientScript.php

Changed renderHead() method for render clients scripts after </title>
Update framework/web/CClientScript.php

Сompromise solution. If we has a <head> we use him, else we use <title>
Update framework/web/CClientScript.php

fixed error
Merge branch 'master' of git://github.com/horechek/yii into horechek-master