finalising JS test