IE 8 js fixes