Update Roost JS to conform to new API.