Looking for some way, I can verify the javascript content-type,
I have made
if(preg_match('/(text|application)\/javascript/i',$header){ #code ...
but this won't work all the cases because some servers reply with application/x-javascript
and my way verify application/javascript and text/javascript.