Pregunta de entrevista de D2L

Debug/improve javascript code (with AJAX calls)