add package, make js for require
Merge pull request #4 from timjgleeson/feature/node-module

add package, make js for require