Java Script implementations of Computational geometry algorithms