Add jQuery to hide irrelevant fields