CRM-14302 fix invalid escaping in attachment js script