jsonfn_test.js now works in browser; re-written doc.