Haversine function now correctly calculates distance.
The test page now interprets the JSON response from UserData correctly.