Fix undefined this.options
Merge pull request #1 from ben-ng/master

Fix undefined this.options