My additions to parse-resource.js