update index.js for use with express 4 and added the appropriate node modules as dependencies