JavaScript added for footers and headers