js confirm in received files