fixed calling lambda function from outside of "with javascript"