minor css abstraction; fixed JS error