declare event listeners in JS instead of relying on onclick, use CF hosted image