Fix clicking on the clhs and crhs elements

You used to be able to click on the side canvas elements to scroll to a location, but that seems broken (error listed below).  This PR attempts to fix that.  I've not very familiar with the code, so please review carefully.

    Uncaught ReferenceError: lhs_xyoffset is not defined 

Thanks.