Custom Document Library action to choose a JavaScript file from the Data Dictionary, which will be run against a file or folder