bug #5022 : Fix a possible security flaw with a HTML page to upload a file

The error message is now well spelled (without any ') and the docx format is added into the whitelist of authorized uploaded files. The variable PeriodicalTimer is now defined in the context of the web page so that it is not null with Firefox