Computational Geometry algorithms implemented in JavaScript