title: Window.innerwidth doesn't update on browser resize
body: <p>When i resize the window, the window.innerwidth doesn't update. I dont want to use jQuery.</p>
  
  <pre><code>var page = window.innerWidth;
  var content = document.getElementById("content");
  content.style.width = page - 300 + "px";
  </code></pre>
  
  <p>i tried:</p>
  
  <pre><code>window.addEvent("resize", function() {
    console.log(window.getCoordinates().width);
  });
  </code></pre>
  
  <p>with no avail​</p>
  
  <p>Edit: But that still doesn't fix the window.innerwidth not changing on resize </p>