JS: minor changes