DistanceTransform Javascript Test