Update machineLearningAPI.js