add package.json and build config

fixes #7