Improve sitemap javascript.