Fixed AJAX on page unload (async: false)