Fix package.json and make it possible to require as module.