Add fourth javascript solution