remove attachEvent method and isDom method change