Insert an external library and be able to use it in an HTML <script cam-script type="text/cam-form"> tag

This:

deps: ['myVariableName']

corresponds to the first part of this:

paths: {
  'myVariableName': 'path/unrelated/to/the/name'
}

and not to the content of the file.

They are usally used to load requireJS modules as defined here. As you usually don’t want a requireJS dependency in your embedded forms, you’ll instead want to register the functions you need as window variables by calling window.myFunction inside the script you are loading. You can then use myFunction in the Forms