moved js outside of example, adapted Hyperlapse.js for my fork of GSVPano, refactoring