Respond to the pjax:complete event

The pjax:complete event is catched and appropriate action is being taken.
Fixes infoweb-internet-solutions/yii2-cms-pages#7