Some minor js changes