remove unused code that breaks IE11 js execution