library setup using superagent for ajax requests