Solve valid shuffle problem in JS and silence console logs in buggy custom matcher.