jsLint compatible, using deferred for handleResponse