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

updated routes.js, fixed typo array_with_total
Merge pull request #1499 from jlsherrill/1.9fix

fixing ruby 1.9 error