Implementation of node.js quiz