refactor the dom module;compatible to jQuery API