same client and server setup, but different out put sounds very strange...
I would suspect some misconfiguration on the VM webserver.
But here are some thoughts:

Some servers also behave strange when no USER-AGENT header is sent with the request Is the javascript embedded`/inlined or referenced externally as file in the yhead> section? what do the IIS logs tell?