Remove dependency on jquery.json in favour of the JSON polyfill

Needed as jquery.json got removed in https://gerrit.wikimedia.org/r/161764