fix runaway setTimeout() calls

fixes #38
test recursive timer
Merge pull request #48 from kanongil/timeout-fix

fix runaway setTimeout() calls