Cleaned code of Graticule.js