title: SP.ClientContext.get_current() return error: Cannot read property 'webServerRelativeUrl' of undefined
body: <p>I have trouble solving the following issue. I am doing JSOM on html with the scripts located in the Document Library.</p>
  
  <p>Here is my code</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;script src="/_layouts/1033/init.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js"&gt;&lt;/script&gt;
  &lt;script src="/_layouts/sp.core.js"&gt;&lt;/script&gt;
  &lt;script src="/_layouts/sp.js"&gt;&lt;/script&gt;
  &lt;script src="../includes/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="../includes/script.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>script.js</p>
  
  <pre><code>jQuery(document).ready(function($) { ExecuteOrDelayUntilScriptLoaded(execOperation, "sp.js"); }
  
  function execOperation() {
      var clientContext = new SP.ClientContext.get_current(); // Get SPSITEURL  
      console.log(clientContext)
      var list = clientContext.get_web();
  }
  </code></pre>
  
  <p>When I try to call get_current(), it returns the following error</p>
  
  <p><em>jquery.min.js:2 Uncaught TypeError: Cannot read property 'webServerRelativeUrl' of undefined
      at Function.SP.PageContextInfo.get_webServerRelativeUrl (sp.js:2)
      at new SP.ClientContext.get_current (sp.js:2)</em></p>
  
  <p>Possible to help check anything wrong with my code?</p>