Javascript error in Typescript generated JS in IE11
<p>I am getting following error from a simple module/class in typescript when I load page in IE11. The error does not happen in other browsers like Edge and Chrome.</p>

<blockquote>
  <p>JavaScript critical error at line 4, column 5 in clock.js SCRIPT1002:
  Syntax error</p>
</blockquote>

<p>Here is TS code.</p>

<pre><code>module DateTime {
    export class TestMe {
        private timeNow:Date;
        constructor() {
            alert("Hello");
        }
    }
}
</code></pre>

<p>And here is JS code generated from  it.</p>

<pre><code>var DateTime;
(function (DateTime) {
    class TestMe {
        constructor() {
            alert("Hello");
        }
    }
    DateTime.TestMe = TestMe;
})(DateTime || (DateTime = {}));
</code></pre>

<p>This is how this is getting invoked on page.</p>

<pre><code>&lt;script type="text/javascript"&gt;
            $(document)
                .ready(function() {
                        var testIt = new DateTime.TestMe();
                    }
                );
    &lt;/script&gt;
</code></pre>

<p>From the debugger I can see that it is not liking "class" keyword in JS code. Page does not even get to create instance of "TestMe" because syntax error in clock.js does not let that file load.
Is there anything that I need to include for it to work in IE11? I have tried to incluse es6 shim as well but same issue.</p>

<p>Thanks for any input on this issue.</p>