NXP-15618: escape javascript