Redo of the title function, moving it to the functions file and out of the header.php file