smith.js