added work on javascript validations