I was trying to use the mw.Api module to do some API calls, following the general example of the documentation:var api = new mw.Api();api.get( {action: 'query',meta: 'userinfo'} ).done ( function ( data ) {console.log( data );} );However, I was getting an error in the JS console:TypeError: undefined is not a constructor (evaluating 'new mw.Api()')