Fix qunit tests

This PR updates jquery, grunt-*, and qunit dependencies; slightly modernizes the package.json and Gruntfile.js files; and fixes a race condition in the "support for the 'addIndividually' property" test which caused it to alternately pass/fail somewhat randomly.