Fixes #746, When creating style tag, include type="text/css"