solved JS Arrays