Lenses for javascript