1. A method for creating a canonical representation of a JavaScript API, the method comprising: instantiating a first one or more objects, associated with the JavaScript API, for use as one or more entry points to the JavaScript API; generating a list of the first one or more objects based on recursively parsing a Document Object Model (DOM) associated with the JavaScript API and filtering the first one or more objects to include objects associated with the JavaScript API and to exclude objects specified in a preconfigured exclusion list; Instrumenting the first one or more objects for creating an infrastructure associated with the JavaScript API based on attaching a respective callback function to each of one or more class members for invocation each time each of the one or more class members are assigned a value, for determining a data type of each value, replacing each of one or more class functions with a respective first function that invokes a respective first callback function for analyzing input parameter types, based on a data type matrix, associated with a replaced function, invokes the replaced function and invokes a second callback function for determining a return type, based on a data type matrix, associated with the replaced function and replacing each of one or more constructors with a respective second function that invokes a respective third callback function for determining input parameter types associated with a replaced constructor and invokes the replaced constructor; statically analyzing the first one or more objects for creating the infrastructure associated with the JavaScript API wherein statically analyzing comprises an analysis based on at least one of class hierarchy, one or more class members, one or more class functions and one or more class constructors; creating an updated infrastructure, based on substantially simultaneous execution and analysis of the first one or more objects and a second one or more objects created based on the execution of the first one or more objects wherein the updated infrastructure is a tree-like data structure and wherein one or more elements of the update infrastructure change positions based on at least one of determining a return type and one or more input parameter types; and outputting an extensible markup language (XML) canonical representation of the JavaScript API based on the updated infrastructure.