CRM-14378 - Cleanup attachment js