Moved all convert code to Convert.js module