Added code for header from http://ben.balter.com/2014/03/13/pages-anchor-links/