Implement use test of register_callbacks

Also standardize use of jquery to create
jquery object from the HTML.