Add js config var 'wgFileExtensions' when loading module

The config var will be removed from the site array in core with
I433e29866fe184ba80c5dda35722e228e79f9307

Change-Id: I538d56af0bf6a15c932903543d7c4f6966439f1b