title: Import javascript file in svelte
body: <p>So today I discovered <a href="https://github.com/sveltejs/svelte" rel="noreferrer">Svelte</a> and I absolutley love the concept. I only got one problem I wrote a small <strong>helper.js</strong> file and can't seem to import it. Every time I try to reference the class I get </p>
  
  <blockquote>
    <p>ReferenceError: Helper is not defined</p>
  </blockquote>
  
  <p><br/>
  <em>main.js file:</em></p>
  
  <pre><code>import App from './App.svelte';
  import './helper.js';
  
  var app = new App({
      target: document.body
  });
  export default app;
  </code></pre>
  
  <p><br/>
  <em>App.svelte file:</em></p>
  
  <pre><code>&lt;script&gt;
      let helper = new Helper();
  &lt;/script&gt;
  
  &lt;h1&gt;Hello&lt;/h1&gt;
  </code></pre>
  
  <p><br/>
  <em>helper.js file:</em></p>
  
  <pre><code>class Helper {
    constructor() {
      console.log("working");
    }
  }
  </code></pre>