EAGLESIX-2351: Fix potential issue with setTimeout

AFIK, this hasn't caused real issues but I'm making the change for correctness.
Merge pull request #31 from RiveraGroup/bugfix/EAGLESIX-2351-fere

EAGLESIX-2351: Fix potential issue with setTimeout