Fixing JS issue on mouseover