Starting to make it into an npm package