Minor tweak to functionality to simplify it and remove one of the setTimeouts. Also removed the vestigal clearInterval call and related variable.