title: form to insert data on meteor mongodb
body: <p>i'm trying to save data on mongodb with a form on meteor and ti should work but it doesn't
  i'm totally lost
  i'm running meteor 0.7.0.1 on a windows 7 machine </p>
  
  <p>bookshell.html</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;body&gt;
    {{&gt; addBook}}
    {{&gt; bookshell}}
  &lt;/body&gt;
  
  &lt;template name="bookshell"&gt;
   &lt;ul&gt;
    {{#each books}}
     &lt;li&gt;{{subject}}&lt;/li&gt;
    {{/each}}
   &lt;/ul&gt;
  &lt;/template&gt;
  &lt;template name="addBook"&gt;
   &lt;form class="addBookForm"&gt;
    &lt;input type="text" class="subject" placeholder="Subject"&gt;
    &lt;button type="submit" class="btn btn-primary"&gt;add book&lt;/button&gt;
   &lt;/form&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>bookshell.js</p>
  
  <pre class="lang-js prettyprint-override"><code>books = new Meteor.Collection("books");
  
  if (Meteor.isClient) {
  
  Template.addBook.events({
    '.submit .addBookForm' : function (e) {
        e.preventDefault();
        books.insert({
          subject: $(".subject").val(),
        });
      }
  });
  
  Template.bookshell.books = function () {
      return books.find({}, {sort: {subject: 1}});
      };
  }
  </code></pre>
  
  <p>someone knows why it doesn't work?</p>