BEST.module('famous:demos:repeat-square', 'HEAD', {
    tree: 'repeat-square.html',
    behaviors: {
        '.square': {
            '$repeat' : function(count) {
                count = count || 1;
                var colors = ['red', 'honeydew', 'lavenderblush', 'olivedrab', 'peru'];
                var result = [];
                for (var i = 0; i < count; i++) {
                    result.push({
                        'change-color' : colors[i % colors.length],
                        'position': [50, 100 + i * 250]
                    });
                };
                return result;
            },
            'change-color': function(_backgroundColor) {
                return _backgroundColor;
            }
        },
        '#root2': {
            'position': function() {
                return [300, 0, 0]
            }
        },
        '.label-view': {
            size: [100, 50]
        }
    },
    events: {
        '$public': {
            'update-count' : function(state, message) {
                state.set('count', message);
            },
            'change-color': function(state, message) {
                state.set('_backgroundColor', message);
            }
        }
    },
    states: {
        count: 5,
        _backgroundColor: 'red'
    }
})
.config({
    imports: {
        'famous:core': ['dom-element', 'view', 'ui-element'],
        'famous:demos': ['clickable-square-with-label']
    }
});;

@@ -990,38 +990,40 @@
  : function(
+$
 state, 
-message
+$payload
 ) %7B%0A        
@@ -1022,32 +1022,33 @@
                 
+$
 state.set('count
@@ -1050,23 +1050,24 @@
 count', 
-message
+$payload
 );%0A     
@@ -1117,22 +1117,24 @@
 ion(
+$
 state, 
-message
+$payload
 ) %7B%0A
@@ -1145,24 +1145,25 @@
             
+$
 state.set('_
@@ -1184,15 +1184,16 @@
 r', 
-message
+$payload
 );%0A 

Fix typo in famous:demos:repeat-square