issue #5281: fix js-tests bug due to -x update