Style pseudo elements with JavaScript