Cleaning up pjax js functions.