Added rudimentary header functions to header.js.