more js validation