Remove the JS dependency by using CSS3 selectors