Updated version for ExpressJS following http://expressjs.com/guide.html