Escape javascript string (fix bug #177)

Escape javascript string (fix bug #177)