removed onsubmit from the HTML and put it into the onload event in main.js. added some tests