how to edit a script