Geometry math library for javascript