Update index.js

Updated to work with Express 4.0