change script timer setup to match HTML dom standard
stop timers when the script does, add cleanup methods