js confirm in files