JavaScript: WGS84 distance (Harvesin)