Converted request parsing to express.js