js cleanup for IE