Use a code snippet for computing the projection

From http://wiki.openstreetmap.org/wiki/Mercator#JavaScript