Allow binding to a namespace other than window when included as part of a closure