Fixed deprecated express.createServer() call. 

express.createServer() is deprecated.

Changed from

    express = express.createServer(),

to

    express = require('express'),
    app = express(),