JavaScript implementation of a geometric point.