Included better function to add console.log support to IE