Convex Hull library using javascript, using the graham scan method