Refactor convert.js, hide details