Update WS JS handling.