No sorry. I never use scripts. I prefer to control everything in my application, like read the existing document with a GET update in my app and send a full document back.
If you need help, provide a full Kibana dev console recreation script as described in About the Elasticsearch category. Please, try to keep the example as simple as possible.