improved js for hiding header by using localStorage to recall setting