Modelled traces API for javascript