update pedometer.js