add package.json
add module exports for use with require
Merge pull request #34 from stewartknapman/require_js

Require js