Removed console.log calls which are not supported in VS2012