Update resource.js

Added sentence detailing why the success callback has access to the resource assigned in the request.