Replaced some javascript selectors with jQuery selectors