title: Calling function in JavaScript like in JQuery
body: <p>I have a div:</p>
  
  <pre><code>&lt;div id="test" style="width:auto; height:auto;"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And a function:</p>
  
  <pre><code> $(function() {
              $("#test").attr("contentEditable", "true");
              $("#test")
              .attr("tabindex", "0")
              .keydown(function(){ alert(1); return false; })
              .mousemove(function(){ alert(2); return false; });
      });
  </code></pre>
  
  <p>How can I implement this code in JavaScript without including the JQuery library?</p>