Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.
Proj objects provide transformation methods for point coordinates between geodetic latitude/longitude and a projected coordinate system.
The OpenLayers.Spherical namespace includes utility functions for calculations on the basis of a spherical earth (ignoring ellipsoidal effects), which is accurate enough for most purposes.