A quick contour finding experiment using javascript