changing event listener to jquery and adding comma