Update rest-comms.js