scriptingDocument code add