High-performance JavaScript polyline simplification library