got rendering working in javascript
all changes including links