fix ReferenceError issue
Merge pull request #5 from uhray/master

Fixed ReferenceError issue.