Migration to jQuery

Refactored lots of long, messy Javascript with jQuery and fixed
editRegistration functionality to take into account varying test price
(remnant from when price was a constant $5)