Changes hover effect from js to css