Turn an XML sitemap into a JavaScript console output