$ npm install bloody-every
var every = require("bloody-every")
every(fn, time[, immediate])
immediate boolean makes the
first run as soon as possible.
fn receives a
stop function as first argument,
and it definitely stops the loop.
// starts the app and stops iterating when the DOM is ready