Styling rewrite to use jquery