refactor - migrating from node restful to simple express