added more javascript stuff