code: function extractFunctionCall(str) {
        var match = /(\w+)\((.*)\)/.exec(str);
        if (!match) throw new Error("Invalid click handler '"+str+"'");
  
        return {
          "method": match[1],
          "args": match[2].split(',')
        };
      }
docs: showReport(foo) => ["showReport(foo)", "showReport", "foo"] showReport(12) => ["showReport(12)", "showReport", "12"]