Added emit-sexp function

Added method and tests to emit hiccup structures from an element