Avoid unauthorized popup upon 401 response for AJAX request