User:Evad37/ScriptModulesDemo.js

Window.importScriptModule('hello').then(function(welcome) {	var greeting = welcome(mw.config.get('wgUserName'));	console.log(greeting); });