Update converter.js

Changed return headerNames to attribute of object