item links created in javascript passing with no errors without evenlistener