Some minor js updates