Set content type to text/javascript.

Otherwise Chrome doesn't load socket.js and says:
"Resource interpreted as script but transferred with MIME type text/plain."