Fixed #1. Use console instead of window to call old console methods