add ability to accept DOM node

accept DOM node as element parameter, also tests!