refactor to remove monkey patching of app.render
update html tree dependency