var http = require('http');
var handler = require('./handler.js');
var dictionaryFile = require('./readDictionary.js');

var server = http.createServer(handler);

function startServer() {
  dictionaryFile.readDictionary(null,null, function() {
  server.listen(3000, function(){
    console.log("Dictionary loaded, server listening to port 3000, ready to accept requests");
  });
})
}

startServer();

@@ -154,16 +154,53 @@
 andler);
+%0Avar port = process.env.PORT %7C%7C 3000;
 %0A%0Afuncti
@@ -290,20 +290,20 @@
 .listen(
-3000
+port
 , functi

Change port variable to process.env.PORT for heroku deployment