Update index.js

Changed  junit xml format preparationto the following way,
< testcase >
< error / >
< /testcase >
< testcase >
        < failure />
< /testcase > 
<b>instead of </b>
< testcase >
        < failure />
        < failure />
       < error />
< /testcase >