JavaScript function for getting HTML form data. Alternative of jQuery forms.