forked and modified from https://github.com/mapbox/running-map-example
This is pulled together using browserify: the libraries it depends on are tracked in the package.json file and pulled in with the npm utility.
The end result is a static site (despite being 'built' with node) that you can host on GitHub Pages or any other host.
$ npm install
This will dynamically recompile the project and serve it up at http://localhost:1337/
$ npm start
$ npm run build