Fix NPM compatibility

Without specifying the main script in package.json you can't import this with Node.