Breakout in Javacript