finally got the new css to coorparate with javascript