Remove unused function accepted_languages
Refactor inline JavaScript and CSS