Fix timeout

The `$timeout` call breaks because `$timeout` is not defined at that point.

I think it's unnecessary, in any case - I tested this branch in ie9 / windows 7, ie10 / windows 8, and ie11 / windows 8.1 and it worked fine.