Use getline so program doesn't break functionality in javascript with multiple word inputs