Replacing 'alert' with 'console.log'

XXX