switched js order to make header background first