Made the profilers that output text not break js.

Change-Id: I12377e7ac08203113e8d6650f57091a63ad1af27
Merge "Made the profilers that output text not break js."