Thin-Plate Spline implementation for npm