Update converter.js

checking intermediateText