improve DOM.ready
update remove() and matches(...) implementation