title: When using Meteor I cannot access the collection from client console?
body: <p>This is the strangest thing, for some reason even with autopublish turned on, I cannot access the collection from browser console. The code below is a simple list program where you can enter items into the collection and it will appear as a list on the screen. In console when I try to access the database by typing People.find() or People.find().fetch() it brings up an error 'ReferenceError: Can't find variable: People' </p>
  
  <p>How come this is happening I have autopublish on, so I thought I can access the collection from the client? </p>
  
  <p>Code:</p>
  
  <pre><code>var People = new Meteor.Collection("people");
  
  
  if (Meteor.isClient) {
  
  
  console.log(People.find());
  
  Template.personList.people = function () {
      return People.find();   
  };
  
  Template.personForm.events({
      'click button': function(e, t) {
          var el = t.find("#name");
          People.insert({ name: el.value });
          el.value = "";
      }
  });
  
  Template.person.editing = function () {
      return Session.get("edit-" + this._id); 
  };
  
  Template.person.rendered = function () {
      var input = this.find("input");
      if(input) {
          input.focus();
      }
  };
  
  Template.person.events({
      'click .name': function (e, t) {
          Session.set("edit-" + t.data._id, true);
      },
      'keypress input': function (e, t) {
          if (e.keyCode == 13) {
              People.update(t.data._id, { $set: { name: e.currentTarget.value }});
              Session.set("edit-" + t.data._id, false);
          }
      },
      'click .del': function (e, t) {
          People.remove(t.data._id);  
      }
  });
  
  }
  </code></pre>