basic example of using promises with node to get input