Ouput title

Moved PHP to top of file,
Outputting title into title tag.