Improved convert.js

Looking for RD_PARM1=.