Convert requireJS AMD style defines to requireJS commonJS style defines