This is mbostock's spline editor example (http://bl.ocks.org/mbostock/4342190) extended to support zooming and editing coordinates via text fields.