js confirm in folders