removed invalid javascript from example

return throw new Error() is an illegal JS statement
Merge pull request #32 from icodeforlove/patch-1

removed invalid javascript from example