kill IE and optimize some code