minor compiler.js fixes