Quiz factory in nodejs + knockoutjs