Added console support

When trying to debug, it's very helpful to be able to console.log('duh!');