Update compile.js

replace correct cfg variable in cancompile