Make it a user script and fix pjax issues