Add support for console.error - closes #8