title: "break" javascript execution
body: <p>I was wondering if there was a way to <em>break</em> javascript execution, something like this</p>
  
  <pre><code>&lt;script&gt;
  
  if(already_done)
  {
    return; //prevent execution (this yields an error)
  }
  
  doSomeStuff();
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I <strong>know</strong> that this is possible like this:</p>
  
  <pre><code>&lt;script&gt;
  
  if(already_done)
  {
    // do nothing
  }
  else
  {
    doSomeStuff();
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>But it's not the solution I'm looking for. </p>
  
  <p>Hopefully this makes sense.</p>