Fix JavaScript confirmation dialog for EasyRule.