fix bugs for IE again, ontimeout not fully supported