fix: JS issue on firefox.

event.originalEvent.srcElement is undefined error.
Replace with getElementById