changed js file to work with new css selector