Dry server models and update pjax
Fix js code