[javascript] How to break/exit from a each() function in JQuery?