Updated index.js with call to Pearson API