Added node helpers

Do this belong in `element.js`?