Made sure the js wouldn't choke if the header and footer don't exist