var currentRows = [], nextRows = ''; for( var i = 0; i < opts.rows; ++i ) { currentRows.push('.tj_row_' + (config.currentRow + i)); ...