title: Word object is undefined in Word2016
body: <p>I am writing an add-in for Word. I have Word 2016. <code>Office.context.requirements.isSetSupported('WordApi', 1.1)</code> is supposed to return <code>true</code> in this case, but it returns <code>false</code>. And the <code>Word</code> object is undefined. Any ideas? Thank you.</p>
  
  <p>Microsoft Word 2016 MSO (16.0.6326.1022) 32 bit on Windows 7 Enterprise</p>
  
  <p>Here are some snippets of my code:</p>
  
  <p>In the <code>head</code> of my <code>html</code> I have this:</p>
  
  <pre><code>&lt;script src="https://appsforoffice.microsoft.com/lib/1/hosted/Office.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="local/js/common.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>common.js starts with</p>
  
  <pre><code>Office.initialize = function(reason) {
      console.log(Office.context.requirememts)
      if (Office.context.requirements.isSetSupported('WordApi', 1.1)) {
          //never gets in here
      }
      else {
          console.log("This add-in requires Word 2016 or greater.");
      }
  };
  </code></pre>
  
  <p>The <code>Office.context.requirememts</code> does not have <code>isSetSupported</code> function</p>
  
  <p><strong>UPDATE</strong>:
  There is one thing that I didn't think was relevant, but apparently it is. My html page on load redirects to another html page and that what seems to cause the problem. The reason I have the redirection is because when xml file has</p>
  
  <p><code>&lt;SourceLocation DefaultValue="http://localhost/wordaddin/index.html"/&gt;</code></p>
  
  <p>instead of</p>
  
  <p><code>&lt;SourceLocation DefaultValue="C:\WordAddIn\index.html"/&gt;</code></p>
  
  <p>the content of the html file is cached and there is no way (none I found at least) to clear this cache. So whatever changes I do in index.html do not come through. So on load of index.html I do <code>window.location='main.html?'+datestamp</code> and that does the trick, but then I am getting into this weirdness.</p>
  
  <p>Here is index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;meta charset="UTF-8" /&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=Edge" /&gt;
      &lt;script&gt;
          function init() {
              var timestamp = new Date().valueOf();
              window.location = "main.html?" + timestamp;
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="init()"&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>