Use flag rather than switch for jQuery upgrade

This will allow us to enable the upgrade for staff only.
Merge pull request #2264 from openjck/jquery-upgrade-flag

Use flag rather than switch for jQuery upgrade