Javascript object to DOM translator, inspired by https://github.com/caldwell/JSML