Passing just pin.name to create marker, and deleting problematic console.log