function warn() {
    var x = document.forms["form"].value;
    if (x == null || x == "") {
        alert("Name must be filled out");
        return false;
    }
}
// function warn() {
//     var x = document.forms["form"].value;
//     if (x == null || x == "") {
//         alert("Name must be filled out");
//         return false;
//     }
// }
Remove everything from main.js file :raised_hands