Set javascript Content-Type for getTranslatedJSLabels return string

Javascript translation strings are defined in method getTranslatedJSLabels
and returned as a string. The Content-Type header must be set
to application/x-javascript or it defaults to text/plain, and the
javascript resource is -- correctly -- rejected by modern security
conscious browsers.