Update example to use rest.js 1.2, simplify