refactor hover over works jquery code with dom traversal