change the js to work with IE (1)