added getDomainName testing for MediaWiki.ts and also cleaned up getDomainName in MediaWiki.ts