#19948 Fixed bug in js