made jQuery function to give titles of pages correct names