Change throw "..." to throw new Error("...")

When throwing plain strings, the stack trace and original location of
the error seems to get lost, and you can't click on the exception in the
Firebug logs to jump to where the exception was thrown.
Merge pull request #78 from dobesv/master

Change throw "..." to throw new Error("...") in the generated Javascript code