JavaScript: Made compatible for IE.