Simple JS script for visualising a grid system