Is location one of the global objects? Based on your description, probably not. There is bound to be oversight when trying to recreate the right scope, which is why we should probably be using the with statement, even if it has some complications.