refactors chatty using express routes