updating to work with jQuery