break if else statement javascript