js confirm in api keys