flegrid for multiple grids, javascript changes.