Added AJAX spinner functionality.