Issue #2249723 by andrei.dincu: Convert js/xmlsitemap.js to D8 standards