added more javascript for third challenge
added more javascript for third challenge