Callback and error JS functions no alerts.

Callback and error JS functions now just do console.log() instead of
alert().