Currently, Server.js getResource() (and likely other functions) returns a Promise that evaluates to a Response instead of a JSON. This means that, to run a function of the desired JSON, the success callback has to take its argument, call .json() on it, and call .then() on the result to do what it wants.
This should be a relatively simple thing to change (just do the same work in the get functions of Server), but working code assumes it works in this way.