Fix Pjax init function.