fix error in example
Merge pull request #10 from jonbretman/type-checking-in-javascript

fix error in example