I have this simple node.js server code which sends alert :
var sys = require("sys"), my_http = require("http"); my_http.createServer(function(request,response){ response.writeHeader(200, {"Content-Type": "application/javascript","Content-Length": "alert('');".length }); response.write("alert('');"); response.end(); }).listen(8080); sys.puts("Server Running on 8080"); The server is up and running :

and I do see the right headers for the response :

But the script is not executing !
Also , The console shows :
Resource interpreted as Document but transferred with MIME type application/javascript: "http://xxxx.com:8080/".
Question :
What am I missing and how can I make this alert work ?
<script>element?sys? what ancient version of Node are you running?