express middleware for handling pjax request transparently.