Changed the language of the document and improved javascript