some js changes.