Updated timelapse.js