Questionaire library in javascript