changed addEventListener to jquery click