added some more javascript solutions