Fixed loading of script when strict MIME type checking is enabled