Updated bodyParser code to avoid deprecation warnings from express.