Replace redundant low level calls with Compiler.compile().

remove console.log?