Bad MIME type in IE7 Validator w3.org

For my main rails webpage I get an error that the content type is text/
javascript which comes as a validation error and prevents IE7 from
functioning. Firefox and Safari seem to be able to get around this.
If I just validate the HTML by itself it is OK.

Is there something in mongrel that needs to be set to avoid this issue?