updated routes.js, fixed typo array_with_total
Merge pull request #1498 from thomasmckay/jsroutes-update

updated routes.js, fixed typo array_with_total