Add Xunit support for JS tests

Casper supports producing xunit output. WIth this, our --xunit flag gets
passed down to the JS test process. This should give nicer output for
JS test failures on Jenkins.
Merge pull request #5972 from takluyver/js-tests-xunit

Add Xunit support for JS tests