optimize javascript and change typography for headers