title: Error using flexibility polyfil
body: <p>I'm trying to use <a href="https://github.com/jonathantneal/flexibility" rel="nofollow noreferrer">this polyfill</a> to allow me use flexbox in IE8 and 9, but I'm just getting errors.</p>
  
  <p>I have version 1.0.6 included in my project, as the <a href="https://github.com/jonathantneal/flexibility/issues/78#issuecomment-246647790" rel="nofollow noreferrer">latest version doesn't work according to the issues</a>.</p>
  
  <p>I am then calling it using the following code in my site.js file:</p>
  
  <pre><code>function supportsFlexBox() {
      var test = document.createElement('test');
  
      test.style.display = 'flex';
  
      return test.style.display === 'flex';
  }
  
  if (supportsFlexBox()) {
      // Modern Flexbox is supported
  } else {
      flexibility(document.documentElement);
  }
  </code></pre>
  
  <p>However, I am getting the following error in console on IE9: </p>
  
  <pre><code>Function expected 
  </code></pre>
  
  <p>I have also tried using just the following code (without the wrapping if statement):</p>
  
  <pre><code>flexibility(document.documentElement);
  </code></pre>
  
  <p>But I get the following error in Chrome</p>
  
  <pre><code>flexibility is not a function
  </code></pre>
  
  <p>Has anyone used this polyfill and it working before, or able to help me get this working? I'm not sure if im calling the function incorrectly or if there is a bug in the polyfill itself.</p>