"express.createServer() is deprecated" corrected

Error on starting corrected:
Warning: express.createServer() is deprecated, express applications no longer inherit from http.Server, please use:
var express = require("express");
var app = express();