more javascript for homepage