Changes to the js file, grid working