Javascript Handsontable - Uncaught TypeError: Cannot read property 'insertBefore' of undefined
<p>I'm using the handsontable library for creating neat tables.<br>
I literally copied the tutorial but the console (web developer console) gives me the following error:</p>

<pre><code>Uncaught TypeError: Cannot read property 'insertBefore' of undefined            
handsontable.full.js:4471 
</code></pre>

<p>I link both the .css and the .js file correctly in the <code>&lt;head&gt;</code> tags.</p>

<p>My javascript looks like this:</p>

<pre><code>var data = [
    ["", "Ford", "Volvo", "Toyota", "Honda"],
    ["2016", 10, 11, 12, 13],
    ["2017", 20, 11, 14, 13],
    ["2018", 30, 15, 12, 13]
];

var container = document.getElementById('temp');
var hot = new Handsontable(container, {
    data: data,
    rowHeaders: true,
    colHeaders: true,
    dropdownMenu: true
});
</code></pre>

<p>Html:</p>

<pre><code>&lt;div id="temp"&gt;&lt;/div&gt;
</code></pre>

<p>Line 4471 in handsontable.full.js is </p>

<pre><code>rootElement.insertBefore(this.container, rootElement.firstChild);
</code></pre>

<p>The table isn't displayed, the error in the console is all I've got.</p>