Fix js error that breaks table sorting (bug 858844)

Load jquery libraries only for mw versions prior to 1.17. Fixes tablesort error (https://bugzilla.mozilla.org/show_bug.cgi?id=858844).