global object consistency

Just to keep naming consistent. Also, it screws up my tests if I'm mocking global object in environment without DOM.