js changes

small js changes