moves prompt to its own function getDropFromAlert()