javascript re-validation