Separated javascript from Submit.html.