creating a quiz with pure js