Jquery upgrade cleanup

supersedes #2228 with a data migration for the flag in the database.