Moving pin drop function above click listener in case the issue with the .each is that variables are somehow being reassigned in the map click listener