document scripts