Simplify JS tests.