A minor change in order to be able to run the script on IE.