title: Get all mondays in the year
body: <p>I always have problems figuring out dates functions</p>
  
  <pre><code>var d = new Date(),
      month = d.getMonth(),
      mondays = [];
  
  d.setDate(1);
  
  // Get the first Monday in the month
  while (d.getDay() !== 1) {
      d.setDate(d.getDate() + 1);
  }
  
  // Get all the other Mondays in the month
  while (d.getMonth() === month) {
      var pushDate = new Date(d.getTime());
      mondays.push(pushDate.getDate() + '-' + (pushDate.getMonth()+1) + '-' + pushDate.getFullYear());
      d.setDate(d.getDate() + 7);
  }
  </code></pre>
  
  <p>I am using this function to get all mondays in a month, current month.</p>
  
  <p>How can I adapt this code to get all remaining mondays in the year?</p>