Giant namespace fix.

Reindent the whole render.js and put it inside a function to hide the
internal implementation details and make it safer to import the javascript
into your own project.

Not too useful yet, since the render() function still makes a lot of
assumptions about your html file, so you still probably just always need to
use render.html still.
2 files changed