I was looking at some code by an individual and noticed he seems to have a pattern in his functions:
function() {
This is amusing. There are probably breaks inside the loop as others have said. I would have done it this way :
while(true) { break; // at the end. }