added example of handling POST data
converted index.js into requestHandlers.js