Making profiler appear in html only if the request is mime html