Usefull snippets - JS / JQuery, PHP / Yii