Rewritten prototype $ for show/hide to jQuery

Resolves #873 
@bmclaughlin : I am ok with the caller having less work (here) and the logic in the `set_element_visible` having an extra condition. Here we trade 3 lines to read for one that is obvious.