updated trivia js