moved all js styles to css rules