CMS-4671 Finish implementation of content.modify script method.