Moved background image change to separate img tags, updated JS to change the image on click. working well