removed invalid javascript from example

return throw new Error() is an illegal JS statement