Refactor, compiler extracted as bccompiler.js