Implementing display of questions from Javascript