Update with @borjasalguero's suggestions:

* Change the alert to console.error.
* Rename the showResponse functions to ui_showResponse and ui_showError