Javascript Hover State Does Not Work When Applying Z

Javascript Hover State Does Not Work When Applying Z