do measure in active measurement. Changes in JSclient preparation.

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>