Added pjax and cleaned up extraneous code