Javascript composed validations library