            m(&quot;h1&quot;, &quot;Home&quot;)
        ]
    }
}</code></pre>
<pre><code class="language-javascript">// index.js
function load(file) {
    return m.request({
        method: &quot;GET&quot;,
        url: file,
        extract: function(xhr) {
            return new Function(&quot;var module = {};&quot; + xhr.responseText + &quot;;return module.exports;&quot;)
        }
    })
}

m.route(document.body, &quot;/&quot;, {
    &quot;/&quot;: {
        onmatch: function() {
            return loa