added more javascript

added more javascript