made method that sets each pages title properly for all pages made with a Java servlet