old_contents: var moment = require('moment');
  exports.CommitsList = React.createClass({
    getMonthOptions: function() {
      var monthsToShow = 3;
      var options = [];
      for (var i=0; i<=3; i++) {
        var date = moment().subtract(i, 'months');
        var label = date.format('MMMM YYYY');
        var value = date.format('YYYY-MM');
        var option = (
          <option value={value}>{label}</option>
        );
        options.push(option);
      }
      return options;
    },
    render: function() {
      var monthOptions = this.getMonthOptions();
      return (
        <div>
          <label htmlFor="month-select">Month:</label>
          <select className="browser-default" id="month-select">
            {monthOptions}
          </select>
        </div>
      );
    }
  });
  
new_contents: var moment = require('moment');
  exports.CommitsList = React.createClass({
    getMonthOptions: function() {
      var monthsToShow = 3;
      var options = [];
      var curDay = new Date().getDay();
      var monthIndex;
      if (curDay >= 15) {
        monthIndex = 0;
      } else {
        monthIndex = 1;
      }
      for (var i=0; i<=3; i++) {
        var date = moment().subtract(i, 'months');
        var label = date.format('MMMM YYYY');
        var value = date.format('YYYY-MM');
        var selected = i === monthIndex ? 'selected' : '';
        var option = (
          <option value={value} selected={selected}>{label}</option>
        );
        options.push(option);
      }
      return options;
    },
    render: function() {
      var monthOptions = this.getMonthOptions();
      return (
        <div>
          <label htmlFor="month-select">Month:</label>
          <select className="browser-default" id="month-select">
            {monthOptions}
          </select>
        </div>
      );
    }
  });
  
subject: Select the right month