Update compute.js