script adjustment for IE 8