more javascript changes