Fix merge conflicted file
Default page sends API-Key header
whose value is sourced from the server
Fix onAjaxError function to better display errors