Added Javascript for grid size prompt