Alerts changed to console.log Not working on Chrome in OSX