Update ninja_modules/rest/lib/helpers.js