Many times I wanted to add some funciton that is not necesarly an option within the default K2 expression. For example wanted to reproduce some SHA 256... since we don't have any Crypto Functions... try to load a JS function like:
Turns out that I create a Data Label and paste as literal but does not get execute correctly. seems like having a folder or library where scripts can be stored and call those once loaded from specific server path will be very useful to allow integrate JS as needed with the ability of review and read in plain text just like appear in the script.
Some times trying to add to the expression minimalize the code and make it unreadable, not really practical. I think this way will be possible to add more functionality to some of the forms.