small js changes