Update index.js

data2xml seems to act different now, so fixed the call