before rejigging grid js