check if a function exists with its name in a string?
You can use eval:
if ( eval("typeof stringFunction === 'function'") ){ /*whatever*/ }
You can check whether it's defined in the global scope using;
if (typeof window[strOfFunction] === "function") {
// celebrate
//window[strOfFunction](); //To call the function dynamically!
}