Check if type is html

Don't always add the profiler, only on html pages.
Merge pull request #12 from barryvdh/patch-2

Check if type is html