Made this extension work for all file types, not just javascript files.

The javascript-specific algorithm is still used for javascript files, but I
added a generic algorithm that is used for all other filetypes.  In the
future other language-specific algorithms can be added, and the
generic algorithm can remain as a fallback only for unrecognized
filetypes.
Added timer to generic sniffer.