Update converter.js

add debugging