An example js app consuming a rest api