metrica js fix