Where is the Maapi defined in the file of "*.js"?

There is a file named configRIPWizard.js in the quagga demo, the file use function Maapi.exists. I want to known where is the Maapi defined. And can you give a example about the use of Maapi.runCmd().

I can not understand how to use the defined below: