Use of bootbox.js with curry to create simple surver app