Changed the prompt on line 11 to an alert as it didn't need any user input.