JS test mostly OK