CRM-13912 : fix js to insert tokens for text message box

CRM-13912 : fix js to insert tokens for text message box