Update rest.js