Fix most of the encoding errors, and the links to the javascript files.