Refactored visual_grid (now called overlays.js)