User:Jdm280/global.js

importArticles({ type: 'script', articles: [       'u:dev:User:Jdm280/BackToTopButton.js',        'u:dev:AjaxPatrol/code.js'    ] });

var spa = { namespace: mw.config.get('wgNamespaceNumber'), pagename: mw.config.get('wgPageName'), server: mw.config.get('wgServer'), language: mw.config.get('wgUserLanguage'), username: mw.config.get('wgUserName') };

console.log('Server: ' + spa.server + ' Namespace: ' + spa.namespace + ' Pagename: ' + spa.pagename + ' Username: ' + spa.username);