some js changes