updated again js and html to create loop for the event listern