method ' added here plays a key role in that a .click modifier is added to it in step 3. 3. Submission Form For Parameters Now this step is only necessary if the function you want to test has parameters. Unlike funcitons, the parameter names are a bit nastier to extract as javascript doesn't have a direct reference to them. However getting the parameter names can be done with this beautiful function from stackoverflow Here we fetch our function name and use it to get the actual function. We then extract the parameter names and turn them into &lt;input&gt; elements as part of a &lt;form&gt; //Output Parameter List $('.method').click(function () { $('#parameterList input').remove(); //Cleanup arguments from last call //Pick up the function name from the 'id' field of the &lt;a&gt; elements created in the last step for use var methodName = $(this).attr('id'); $('#fcnName').text(methodName); currentFunction = driveService[methodName]; //Here we use the name to extract the actual function not just the function name and store it in the global 'currentFunction' $('#parameterList h2').replaceWith('&lt;h2&gt;' + methodName + '&lt;/h2&gt;'); var parameter = getParamNames(currentFunction); if (parameter == null) { //In case we have no args we can just use the function, output sent to #output $('#lastArgs').text('---'); currentFunction().then(function (d) { $('#output').val(JSON.stringify(d)); }); } else { var inputItem; for (var i = 0; i &lt; parameter.length; i++) { //Output the array we got from getParamNames function inputItem = document.createElement("INPUT"); inputItem.id = parameter[i]; inputItem.placeholder = parameter[i]; $('#parameterList').append(inputItem); } } }); 4. Middle Glue for Submitting our Argument Now that