Break statement in JavaScript