Resolved javascript vs hover issues