completed basic form submission and refactor to translation.js