Change build code for material update
Autoscroll to the last chapter
Currently uses the last chapter loaded, not the last chapter on screen, so may not be 100% accurate.
Resolves issue #7.