replaced addEventListener with jQuery click