update compute_model.js