OPTICS density based clustering algorithm written in javascript