This modifies the script to use request rather than superagent