Fix for setTimeout on IE9