modified jsTestDriver