An object-oriented solution to many of the setInterval problems