title: inserting json data in meteor collection
body: <p>Here's my code. <a href="https://github.com/StudioMockingbird/SH_meteor" rel="nofollow">https://github.com/StudioMockingbird/SH_meteor</a></p>
  
  <p>its just the leaderboard example wwhere i am trying to insert some of my own data in the collections.</p>
  
  <p>my data resides in lib/book.js and has been defined as an object (var myBook).</p>
  
  <p>the code that I use for inserting is in leaderboard.js as -</p>
  
  <pre><code>Pages = new Meteor.Collection("pages");
  if (Meteor.isServer) {
      Meteor.startup(function () {
          if(Pages.find().count() === 0){
              var pages = JSON.parse(myBook.stories);
              for (page in pages) {
                  Pages.insert(pages[page]);
              }
          }
      });
  }
  </code></pre>
  
  <p>when i try to run my code it gives me </p>
  
  <pre><code>Running on: http://localhost:3000/
  Exited with code: 1
  Exited with code: 1
  Exited with code: 1
  Your application is crashing. Waiting for file change.
  </code></pre>
  
  <p>what am I doing wrong? I am totally new to meteor.</p>