[JS] Minor changes