Update junit.js

A little bug fix for junit.js.
Merge pull request #220 from edwardwang1105/patch-1

Fixed a bug in junit.js resulting from some refactoring.