Nitpick: more whitespace is needed. See https://www.mediawiki.org/wiki/CC/JS . Looks OK otherwise.