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