Escape javascript string (fix bug #177)

Fix this bug https://github.com/ASKBOT/askbot-devel/issues/177