Replace alert() calls in Javascripts with more appropriate console.log().