jQuery example to consume REST resources