Currently the button indices are [hard coded](https://github.com/chafey/cornerstoneDemo/blob/gh-pages/js/setupButtons.js#L8-113). This same code is much less fragile in the [allImageTools example](https://github.com/chafey/cornerstoneTools/blob/2c42f49fc9d132cb7fe4a169f501a06e5ee408a3/examples/allImageTools/index.html#L166-207).