simplified javascript and css