predefine `console` for javascript