fixed a couple bugs in ldaviz javascript
a few more updates, mostly to R function newJSON()