anchor.diff:    setInterval(dashboardHeartbeat, 10*seconds);
   
     minuteColumns
  -    .attr('checked', "<%= @minute_columns %>" === "true")
  +    .attr('checked', '<%= @minute_columns %>' === 'true')
       .click(function() {
         refreshDashboard();
       });
   
     autoRefresh
  -    .attr('checked', "<%= @auto_refresh %>" === "true")
  +    .attr('checked', '<%= @auto_refresh %>' === 'true')
       .click(function() {
         refreshDashboard();
       });
  
positive.code: 
  $(document).ready(function() {
  
    var id = (function() {
      return "<%= @kata.id %>";
    })();
  
    var minuteColumns = (function() {
      return $('#minute-columns-checkbox');
    })();
    var autoRefresh = (function() {
      return $('#auto-refresh-checkbox');
    })();
  
    var minuteColumnsIsChecked = function() {
      return minuteColumns.is(':checked');
    };
    var autoRefreshIsChecked = function() {
      return autoRefresh.is(':checked');
    };
  
    var dashboardHeartbeat = function() {
      if (autoRefreshIsChecked()) {
        $.ajax({
          url: '/dashboard/heartbeat',
          data: {
            id: id,
            minute_columns: minuteColumnsIsChecked(),
            auto_refresh: autoRefreshIsChecked()
          },
          dataType: 'script'
        });
  
negative.code:   };
  
    var refreshDashboard = function() {
      var url = '/dashboard/show/' + id +
                '?' + 'minute_columns=' + isChecked(minuteColumns) +
                '&' + 'auto_refresh=' + isChecked(autoRefresh);
      window.location = url;
    };
  
  