Minimum steps to extract a Node.js function and use it on the web

Helping to swing the pendulum from Node.js back to vanilla JavaScript.