made some js changes