   document.getElementById("spinner-0").style.display = "none";
                                if (bool) {
                                    alert('Job Updated Successfully');
                                    window.location.reload();
                                } else alert('Woops there was a problem updating the Job Ad');
                            }
                        );
                    }
                }
            } else if (hasFiles) {
                // upload new image
        