Added mw.config.get instead of directly using global vars


Added mw.config.get instead of directly using global vars because
$wgLegacyJavaScriptGlobals = true is discouraged.

Change-Id: I402af35a797b0a24cb5833036d5f65a10d43dd23