Add trace on js page