Adding console.log() polyfill
Use log()
Adding es5 shim