javascript lenses