title: Can't get ace editor with ASP.NET hot towel spa template to work
body: <p>I'm new to web development, so please have mercy :)
  I've created a new ASP.NET project with the hot towel template (<a href="http://nuget.org/packages/HotTowel/" rel="nofollow">http://nuget.org/packages/HotTowel/</a>) and added</p>
  
  <pre><code>&lt;script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>to index.cshtml. Also, I modified home.html to look like this:</p>
  
  <pre><code>&lt;section&gt;
      &lt;div id="editor"&gt;
          function foo(items) {
              var x = "All this is syntax highlighted";
              return x;
          }
      &lt;/div&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>At last, I changed home.js:</p>
  
  <pre><code>define(['services/logger'], function (logger) {
      var vm = {
          activate: activate,
          title: 'Home View'
      };
  
      var editor = ace.edit("editor");
      editor.setTheme("ace/theme/monokai");
      editor.getSession().setMode("ace/mode/javascript");
  
      return vm;
  
      //#region Internal Methods
      function activate() {
          logger.log('Home View Activated', null, 'home', true);
          return true;
      }
      //#endregion
  });
  </code></pre>
  
  <p>When I run the application, Chrome tells me that ace.js has an Uncaught TypeError: Cannot read property 'env' of null. Of course, the home screen won't show up. What should I do to make it work?</p>