How to break out of a function in JavaScript

Published --