added trivia functionality with js