fixed issues when including from module
Merge pull request #7 from shebbys/master

Fixed two errors that occur when included chronos from a node module