from this thread:
http://forum.dokuwiki.org/thread/681
this worked to solve the problem:
Login as admin => click on the admin button => Configuration Settings => Advanced Settings => disable "Compact CSS and javascript output".
the compact function creates the problem on the final .js.
Cheers, Sergio