removing error alert from attachments js