Update the Model in JS version