detect contenttype by checking snippet title

Now its quite easy to set the content type to
use a reasonable fileextension in the snippet
title.
Merge pull request #18 from darinkes/js2filename

detect contenttype by checking snippet title