Form submission linked in

I made it an external javascript file to make it easier to use it in
future projects as well with very little heartache
Changed main.html to index.html

Because index.html is a standard I like better