Update docs: JS side of custom constraint

JS side of custom constraint has to return an  empty array if the validation is sucessful.