Refactor the legacy code and remove some jQuery calls.
querySelector
initCompLabelEdit
showElem
hideElem