D2L interview question

Debug/improve javascript code (with AJAX calls)