Move converter and update it
Refactor define and newElement
Handle escapes
Do basic type coercion to maintain type
Define var() to be re-contextualized