Fixed 'fixed-sticky.js' for browser resize bug.

Initial offset remained the same despite browser height changes so fixed
sticky would activate at the wrong time.  Also tidied a couple of areas
of the code.