fixed a small typo
[#301] first stab at this one (adding a setTimeout and setInterval function)