function simulateWinIe7() {
  userAgent.MAC = false;
  userAgent.WINDOWS = true;
  userAgent.LINUX = false;
  userAgent.IE = true;
  userAgent.EDGE = false;
  userAgent.EDGE_OR_IE = true;
  userAgent.DOCUMENT_MODE = 7;
  userAgent.GECKO = false;
  userAgent.WEBKIT = false;
}
Used to simulate behavior of Windows/InternetExplorer7