minor js changes