Replaced all uses of html attribute onClick with jquery event handlers