storing div reference in anchor, using event.preventDefault()