You know, you can also use try/catch and throw exceptions (an exception does not have to be an error.)
You might want to google for this topic as things such as eval() are not clearly discussed in Flanagan but you can finds lots of information on the web.
I believe javascript supports the goto statement and line markers such as