Upgrading body-parser module usage to use new api instead of a deprecated method