Looks like a charset encoding error.
It appears that there are these Ä or Å characters are added in the indenting.
Ofcourse that script as it is shown in the error display is not going to work, which you probably have guessed.
Try placing it in some high level text editor and use utf8 or utf16 charsets.
I suppose that copying and pasting from the thread or map should also work, but you probably already tried that