Completes #39 [1.8] Convert Prototype code to jQuery