Scripts for documents