Set proper AJAX poll timeouts when we update the task list via AJAX.
Fix whitespace in js.