Javascript code to automate content on a site based on time-of-day and day-of-the-week, reading from XML sheet hosted on server