Move javascript inside of <body> to be valid HTML
Set <form> action target to get valid HTML