Adds AJAX loading animation