Scheduler based in Javascript timers