Fixed main.js, some typos and added all fields to ajax-call. Fixed index.html, some typos.