js change for ie8 fix - hopefully this works