Roll gridTool.js back temporarily

Changes in here break editEntities on Windows - rolling back temporarily until I find a fix.