Added java apis in js doc. Fixed toc links. save uses pretty json.