spacing and identation is important
syntax/spacing improvements
never use tabs, and add debug logging
use setInterval, not setTimeout