adding more functionality to jstest