Organized main.js, added errors for form responses
Fixed overzealous form submission due to carelessness