Update acceleration.js