added support for HTAs using ie9