title: How to require mode, theme or addon of code mirror in browserify
body: <p>Has anybody try to use code mirror via browserify?</p>
  
  <p>I find nothing is visible, even though it already generated all the html tags. </p>
  
  <p>The code : </p>
  
  <pre><code>var CodeMirror = require('codemirror');
  require('codemirror/mode/javascript/javascript.js');
  
    var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
      lineNumbers: true,
      extraKeys: {
        "Ctrl-Space": "autocomplete"
      },
      mode: {
        name: "javascript",
        globalVars: true
      }
    });
  </code></pre>
  
  <p>i wonder how i should require the js mode?</p>