Javascript to add header/footer