added popstate check to trigger ajaxify on back button keypress. forward button doesn't work yet