Corrected browser history when AJAX