translate doc to backbone-form compatible model and then back again
No longer needed -- all js is in editor.xhtml.
output json doc to editor.xhtml and provide title