Render DocumentFragments properly

Also remove dead render.js file
Merge pull request #9 from Raynos/github_master

Render DocumentFragments properly