Remove unused "window.gM"

The original was deprecated in MediaWiki core a while back, TMH still
created its own for back-compat, but is no longer used in this extension.

Bug: 62825
Change-Id: Ie76a79ff3e6f83e5829fc9997dbd2e73dfb5640e