fixing javascript and CSS