Scientists created "smart glasses" that could automatically adjust the focus on what the wearer is seeing.