extract compile.js