compile circuits.js to correct directory