updateJS and CSS for height and width functions