Disable magic_quotes_runtime. This seems to be causing the problem because it escapes the Javascript code and therefore creates syntax errors in the js Code.
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
Step by step here