spacing cleanup, adding globals into closure, remove setInterval in favour of setTimeout