CAL-157 fix js after UI-2189 changes