Check if text/html, instead of not JSON

When dynamiccaly generating css/js, the profiler messes up the file. So instead of blacklisting, just check of it is text/html instead.
(Fixes problems with the latest Basset develop branch from @jasonlewis)
Merge pull request #12 from Barryvdh/patch-2

Check if text/html, instead of not JSON