various js changes