replaced references to $ with jQuery