While we only have one or two functions, we should work out how to lay out the js code so that it can be unit-tested, and deployed with npm.