Js wrapper for metrics logger