some js updates