Fixes #34

Adds 'hat' dependency to package.json
Merge pull request #36 from knod/master

Fixes #34