I knowwhat the problem is to get rid of the error, some code was left out...
FIND THIS:
______________________________
function display_title() {
date = new Date();
var hours = date.getHours();
var message = '';
if (hours >= 6) { time_of_day = 'Good morning$CookieGreet'; message='Morning Message';}
if ((hours >= 12) && (hours < 17)) { time_of_day = 'Good afternoon$CookieGreet'; message='Afternoon Message'}
if (hours >= 17) { time_of_day = 'Good evening$CookieGreet'; message='Evening Message';}
REPLACE WITH:
________________________________
function display_title() {
date = new Date();
var hours = date.getHours();
var message = '';
var time_of_day = '';
if (hours >= 6) { time_of_day = 'Good morning$CookieGreet'; message='Morning Message';}
if ((hours >= 12) && (hours < 17)) { time_of_day = 'Good afternoon$CookieGreet'; message='Afternoon Message';}
if (hours >= 17) { time_of_day = 'Good evening$CookieGreet'; message='Evening Message';}
I hope this fixes it.