AJAX redirect now works