some more javascript work