I need to define a function with a name that I have in the string.
Not a big deal, right?
window[fnName] = function(...args) { // ... }