TablePager: Use wfScript() instead of $wgScript

Change-Id: Ib12bd3dfa102dc673789c27506becc2fd8138f56