change check for index.xml to index.js in utils