Better implementation of Mercator projection
Improved Example