Update resource.js

added `options` to the supported actions for a resource