improve rowGrid.js