Update coa.js

let output work with folder, allow folder option to continue after it encounters a non-svg file