Add application/javascript to text types

Javascript code also needs charset HTTP header to correctly use UTF-8 strings. This patch adds 'application/javascript' to list of additional text types in MimeTypes class
Merge pull request #711 from maxcom/patch-1

Add application/javascript to text types