Processing ref_budget js almost ok