bugid: PLA-384 fix fatal error in js