html2js login form and submit on return