There is no problem with addEventListener, you have to add one condition || bead1.style.top == ""
because bead1.style.top is empty by default:
function fiveToggle(bead1) {
if (bead1.style.top == "0px" || bead1.style.top == ""){
bead1.style.top = "25px";
} else {
bead1.style.top = "0px";
}
}
You can do that using css too, setting the initial top value to 0px