Hyperlapse.js rewrite