simulation pauses when browser looses focus