chore(js): Clarify that the assignment in while loop check is intentional