Quoting of JS responses was completely busted.
Fixed quoting of JS responses.