HUE-1404 [jb] Finished jobs are not updated in live

Fixed js code