Jquery changes

Changes for the basic jquery to make the candidate selector to work.