Refactoring JS and optimizing PJAX
Cleaning up the mobile methods