[javascript] How to turn a String into a JavaScript function call?