title: ReferenceError: MouseEvent is not defined
body: <p>I am trying to use <a href="https://github.com/valor-software/ng2-select" rel="nofollow">ng2-select</a> in a project which uses <a href="https://github.com/angular/universal-starter" rel="nofollow">angular/universal-starter</a> (TypeScript 2.x) as backbone.</p>
  
  <p>(I tried to add ng2-select in an angular-cli generated project, it works well though)</p>
  
  <p>Just after adding these two lines:</p>
  
  <pre><code>import { SELECT_DIRECTIVES } from 'ng2-select/ng2-select';
  
  @Component({
    directives: [SELECT_DIRECTIVES],
    ...
  </code></pre>
  
  <p>I already got the error in my terminal:</p>
  
  <blockquote>
  <pre><code>ReferenceError: MouseEvent is not defined
      at /my-project/node_modules/ng2-select/components/select/off-click.js:33:42
      at Object.&lt;anonymous&gt; (/my-project/node_modules/ng2-select/components/select/off-click.js:43:2)
      at Module._compile (module.js:541:32)
      at Object.Module._extensions..js (module.js:550:10)
      at Module.load (module.js:458:32)
      at tryModuleLoad (module.js:417:12)
      at Function.Module._load (module.js:409:3)
      at Module.require (module.js:468:17)
      at require (internal/module.js:20:19)
      at Object.&lt;anonymous&gt; (/my-project/node_modules/ng2-select/components/select/select.js:20:19)
      at Module._compile (module.js:541:32)
      at Object.Module._extensions..js (module.js:550:10)
      at Module.load (module.js:458:32)
      at tryModuleLoad (module.js:417:12)
      at Function.Module._load (module.js:409:3)
      at Module.require (module.js:468:17)
      at require (internal/module.js:20:19)
      at Object.&lt;anonymous&gt; (/my-project/node_modules/ng2-select/components/select.js:2:16)
      at Module._compile (module.js:541:32)
      at Object.Module._extensions..js (module.js:550:10)
      at Module.load (module.js:458:32)
      at tryModuleLoad (module.js:417:12)
  [nodemon] app crashed - waiting for file changes before starting...
  </code></pre>
  </blockquote>
  
  <p>This is my <strong>tsconfig.json</strong> file:</p>
  
  <pre><code>{
    "compilerOptions": {
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "target": "es5",
      "module": "commonjs",
      "removeComments": true,
      "sourceMap": true,
      "lib": ["es6", "dom"]
    },
    "include": [
      "node_modules/@types/**/*.d.ts",
      "src/**/*.ts"
    ],
    "exclude": [
      "node_modules",
      "!node_modules/@types/**/*.d.ts"
    ],
    "compileOnSave": false,
    "buildOnSave": false,
    "atom": {
      "rewriteTsconfig": false
    }
  }
  </code></pre>