Fix recently introduced issue with Node.js
Clean up smooth() code.
Simplify SVG node example.