Yes, but that doesn't actually solve the problem. How is that code going to interact with your existing objects unless those objects are in the global scope?
If both the requester of the AJAX call and the receiver are in the same closure, there's no need for those objects to be globally accessible.