replaced needed css with javascript styles