Correct instanceof keyword

Fixes #315
Merge pull request #316 from simonwelsh/patch-1

Correct instanceof keyword