added compileToEs3 method