Update resource.js

Fixed typo in documentation for "paramDefaults" optional parameter.