added render function & dot.js example to the docs