Browsing: scaling templates for documents