title: How do I use beautify in Ace Editor?
body: <p>I've found the beautify extension in Ace editor but I don't see any examples of how to use it. Here's what I have so far:</p>
  <pre class="lang-js prettyprint-override"><code>var beautiful = ace.require(&quot;ace/ext/beautify&quot;);
  beautiful.beautify();
  </code></pre>
  <p>but I get the error:</p>
  <pre><code>Result of expression 'e' [undefined] is not an object.
  </code></pre>