Breaking Bad (Loops in JavaScript Libraries)