Header styles and menu shifting bug caused by slow javascript fix