Omit the second parameter. Use break to exit the loop, otherwise the loop will never end, and your browser will crash: