Update javascript from alert to console.log

With nodejs being popular, I think it would be good to change from alert to console.log