[BACKLOG-435] - Fix error in JS.