Pause terminal during AJAX call