Hello everyone. It is a code from Bucky's tutorial on node js beginning no:13. In my jet brains web storm 11.0, it is saying response.writeHead() unsolved function. I've also installed node version: 4.2.2.
var http = require("http");

//This is the callback method, is called every time a user makes a request
//Request object has info about their request, response object is what we send back to them
function onRequest(request, response) {
console.log("A user made a request" + request.url);
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("I am a simple Node server!");

//Create a server and listen for requests on this port
console.log("Server is now running...");