Update makegrid.js

For Bug #4301
Fix-> The new query is shown after a 1500ms it is updated with the old query using animation.
Changes in Line-> 1273 to 1274 and 1282 to 1288