Fixes failing unit test after jQuery upgrade.