Fix options bug

`options` could be undefined when it's referenced in `this.options`
Merge pull request #9 from kix/patch-2

Fix options bug