Refactoring. No more VBScript for IE8