DEVSUPPORT-1090 - fix escape javascripts