Added a new function for generating the title tag with @davidbbe