Split out view-specific code to view.js
Make scrollToHex work to show the correct starting hex.