added form input variables to main.js