updated routes.js, fixed typo array_with_total