Fix potential problems with javascript/translations

`'Automation Instructions'` may contains quotes in translations: let's be sure to correctly escape it before using it in JavaScript