Fix adapt js integration for IE8