Report question

Question: Stopping a JavaScript function when a certain condition is met