JavascriptRenderer

- Refactor JS so payloads are smaller
- Update README with a less contrived JS example