Regenreated convert.js