title: setting day of week in javascript
body: <p>I'm using the phonegap localNotifications plugin which specifies that I can set a notification to occur weekly. </p>
  
  <p>However, it appears the javascript date object only has <code>.getDay()</code> and not <code>.setDay()</code>.</p>
  
  <p>I've got an json object of the days of the week I want to set to repeat, </p>
  
  <pre>
  set_days = {"mon":false, "tues":true,"wed":false,"thurs":true...}
  </pre>
  
  <p>how do you set a day in javascript? Because it is setting a notification, the day has to be in the future, so I don't want to get the most recent "wednesday", but only the next "wednesday". </p>
  
  <p>here's a link to the plugin, but I don't think this is really specific to the plugin. </p>