Update converter.js

checking targets