Add javascript solution