var ppl = {
  'waterloo': {
    'name': 'WATERLOO STUDENT',
    'boostrate': -1,
    'price': 1,
    'numberOwned': 0
  },
  'ryerson': {
    'name': 'RYERSON STUDENT',
    'boostrate': -1,
    'price': 2,
    'numberOwned': 0
  },
  'student': {
    'name': 'COMPETENT CS STUDENT',
    'boostrate': 1,
    'price': 64,
    'numberOwned': 0
  },
  'intern': {
    'name': 'INTERN',
    'boostrate': 4,
    'price': 256,
    'numberOwned': 0
  },
  'softwareengineer': {
    'name': 'SOFTWARE ENGINEER',
    'boostrate': 10,
    'price': 2048,
    'numberOwned': 0
  },
  'srsoftwareengineer': {
    'name': 'SENIOR SOFTWARE ENGINEER',
    'boostrate': 25,
    'price': 8192,
    'numberOwned': 0
  },
  'cto': {
    'name': 'CTO',
    'boostrate': 75,
    'price': 32768,
    'numberOwned': 0
  },
  'billgates': {
    'name': 'A WHOLE BILL GATES',
    'boostrate': 200,
    'price': 131072,
    'numberOwned': 0
  },
  'alanturing': {
    'name': 'THE ALAN TURING',
    'boostrate': 500,
    'price': 524288,
    'numberOwned': 0
  },
  'uoft': {
    'name': 'UOFT CS STUDENT',
    'boostrate': 5000,
    'price': 4194304,
    'numberOwned': 0
  }
};

var upg = {
  'parents': {
    'name': 'YOUR MOMS HOUSE',
    'clickrate': 1,
    'price': 128,
    'owned': false
  },
  'ownplace': {
    'name': 'YOUR OWN PLACE',
    'clickrate': 5,
    'price': 1024,
    'owned': false
  },
  'startup': {
    'name': 'STARTUP',
    'clickrate': 10,
    'price': 4096,
    'owned': false
  },
  'office': {
    'name': 'OFFICE',
    'clickrate': 50,
    'price': 16384,
    'owned': false
  },
  'building': {
    'name': 'BUILDING',
    'clickrate': 200,
    'price': 131072,
    'owned': false
  },
  'city': {
    'name': 'CITY',
    'clickrate': 1000,
    'price': 1048576,
    'owned': false
  },
  'country': {
    'name': 'COUNTRY',
    'clickrate': 7777,
    'price': 8388608,
    'owned': false
  },
  'world': {
    'name': 'THE WHOLE FUCKING WORLD',
    'clickrate': 20000,
    'price': 134217728,
    'owned': false
  },

};

var init = function () {
  Session.set('clickrate', 1.0);
  Session.set('boostrate', 0);
  Session.set('score', 0);
  Session.set('timeInterval', 1000);
  Session.set('people', ppl);
  Session.set('upgrades', upg)

  var interval = Meteor.setInterval(function () {
    Session.setPersistent('score', Session.get('score') + Session.get('boostrate'));
  }, Session.get('timeInterval'));
}

Template.body.onRendered = function () {
  if (!this._rendered) {
    this._rendered = true;
    init();
  }
}

Template.body.events({
  'click .reset': function () {
    Session.clear();
    init();
  }
});

@@ -2060,16 +2060,23 @@
 sion.set
+Default
 ('clickr
@@ -2100,16 +2100,23 @@
 sion.set
+Default
 ('boostr
@@ -2138,16 +2138,23 @@
 sion.set
+Default
 ('score'
@@ -2172,16 +2172,23 @@
 sion.set
+Default
 ('timeIn
@@ -2216,16 +2216,23 @@
 sion.set
+Default
 ('people
@@ -2253,16 +2253,23 @@
 sion.set
+Default
 ('upgrad
@@ -2635,16 +2635,196 @@
 ion.
-clear();
+set('clickrate', 1.0);%0A    Session.set('boostrate', 0);%0A    Session.set('score', 0);%0A    Session.set('timeInterval', 1000);%0A    Session.set('people', ppl);%0A    Session.set('upgrades', upg)
 %0A   

fix persistent storage again