[OE-3949] javascript lens calculations