Updated main.js to show grid points immediately if referred by origin