A port of https://github.com/nprapps/copytext to node.js