Moves console to own class. Fixes Math.pow to asm compatible.