[JS] small changes