Changes to documents.js to use expanded data model

Oops, no, let me fix.  Thanks!