If ajax_createItem_async fails, showing an alert and logging to javascript console.