[NX-19] Small js fixes

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>