Update index.js

Added new flag for old junit xml format