Clean up next question javascript logic