params.js: Some jQuery weirdness, attempt two

I broke the code in d28336a667973bd3a207ce8f72bd369e8e8d69f3.
This fixes it back.