Update lib-dom.js

 - added last && first child
 - more docs