update js roll and validate